package com.lesso.lpq.sunflower.controller;

import com.lesso.lpq.sunflower.core.ApiResponse;
import com.lesso.lpq.sunflower.service.IAttendanceRecordService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/dat/attendance-record")
public class AttendanceRecordController {

    @DubboReference
    private IAttendanceRecordService attendanceRecordService;
    @PostMapping
    public ApiResponse<Object> employeeAttendance(){
        attendanceRecordService.employeeAttendance();
        return ApiResponse.ok();
    }
}
